/////////////////////////////////////////////////////////////////////
//
// OposPwr.h
//
//   POSPower header file for OPOS Applications.
//
// Modification history
// ------------------------------------------------------------------
// 2000-09-24 OPOS Release 1.5                                   TH
// 2005-04-29 OPOS Release 1.9                                   CRM
//   Add PowerSource constants.
//   Add Reason constants for RestartPOS, StandbyPOS, SuspendPOS.
//   Add StatusUpdateEvent constants for battery support.
// 2011-04-07                                                    EPO
//   Converted to Pascal by Eric Orilla
//
/////////////////////////////////////////////////////////////////////

unit opospwr;

interface

const

/////////////////////////////////////////////////////////////////////
// "UPSChargeState" Property Constants
/////////////////////////////////////////////////////////////////////

  PWR_UPS_FULL           : Longint     = 1;
  PWR_UPS_WARNING        : Longint     = 2;
  PWR_UPS_LOW            : Longint     = 4;
  PWR_UPS_CRITICAL       : Longint     = 8;


/////////////////////////////////////////////////////////////////////
// "PowerSource" Property Constants (added in 1.9)
/////////////////////////////////////////////////////////////////////

  PWR_SOURCE_NA          : Longint     = 1;
  PWR_SOURCE_AC          : Longint     = 2;
  PWR_SOURCE_BATTERY     : Longint     = 3;
  PWR_SOURCE_BACKUP      : Longint     = 4;


/////////////////////////////////////////////////////////////////////
// "RestartPOS", "StandbyPOS", "SuspendPOS" Methods:
//   "Reason" Parameter Constants (added in 1.9)
/////////////////////////////////////////////////////////////////////

  PWR_REASON_REQUEST     : Longint     = 1;
  PWR_REASON_ALLOW       : Longint     = 2;
  PWR_REASON_DENY        : Longint     = 3;


/////////////////////////////////////////////////////////////////////
// "StatusUpdateEvent" Event: "Status" Constants
/////////////////////////////////////////////////////////////////////

  PWR_SUE_UPS_FULL                   : Longint     = 11;
  PWR_SUE_UPS_WARNING                : Longint     = 12;
  PWR_SUE_UPS_LOW                    : Longint     = 13;
  PWR_SUE_UPS_CRITICAL               : Longint     = 14;
  PWR_SUE_FAN_STOPPED                : Longint     = 15;
  PWR_SUE_FAN_RUNNING                : Longint     = 16;
  PWR_SUE_TEMPERATURE_HIGH           : Longint     = 17;
  PWR_SUE_TEMPERATURE_OK             : Longint     = 18;
  PWR_SUE_SHUTDOWN                   : Longint     = 19;
  PWR_SUE_BAT_LOW                    : Longint     = 20; // (added in 1.9)
  PWR_SUE_BAT_CRITICAL               : Longint     = 21; // (added in 1.9)
  PWR_SUE_BAT_CAPACITY_REMAINING     : Longint     = 22; // (added in 1.9)
  PWR_SUE_RESTART                    : Longint     = 23; // (added in 1.9)
  PWR_SUE_STANDBY                    : Longint     = 24; // (added in 1.9)
  PWR_SUE_USER_STANDBY               : Longint     = 25; // (added in 1.9)
  PWR_SUE_SUSPEND                    : Longint     = 26; // (added in 1.9)
  PWR_SUE_USER_SUSPEND               : Longint     = 27; // (added in 1.9)
  PWR_SUE_PWR_SOURCE                 : Longint     = 28; // (added in 1.9)

implementation

end.
